Verification of a Compressible CFD Code using the Method of Manufactured Solutions
نویسندگان
چکیده
The computational fluid dynamics code Premo is currently being developed to solve compressible flow problems with a finite-volume approach using unstructured meshes. This code employs both the Green-Gauss and the Least Squares gradient approximations in order to achieve a spatial accuracy that is formally second order for both convection and diffusion. In this paper, the Method of Manufactured Solutions is employed to generate exact solutions to the governing equations along with additional source terms. The exact solutions are then used to accurately evaluate the discretization error in the numerical solutions. The Manufactured Solutions approach is applied to the 2D inviscid Euler equations (both subsonic and supersonic), the 3D Euler equations (supersonic), and the 2D Navier-Stokes equations (both subsonic and supersonic). Through global discretization error analyses, the spatial order of accuracy is observed to be second order for all but one of the ten cases examined. With regards to the other nine cases, a high degree of confidence is achieved that the Premo code is free from coding mistakes in the spatial discretization for uniform meshes. 1 † Senior Member of Technical Staff, MS 0825, E-mail: [email protected], Senior Member AIAA ‡ Senior Member of Technical Staff, MS 0316, E-mail: [email protected], Member AIAA § Principal Member of Technical Staff, MS 0316, E-mail: [email protected], Member AIAA * Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under Contract DE-AC0494AL85000. This paper is declared a work of the U. S. Government and is not subject to copyright protection in the United States. Nomenclature e energy, m2/s2 f source term fs sine or cosine function h measure of grid spacing k thermal conductivity,W/(m·K) L domain length, m p spatial order of accuracy, or pressure, N/m2 Pr Prandtl number (Pr = 1.0) q heat flux vector, N/(m·s) R specific gas constant (R = 287. Nm/(kg·K)) r grid refinement factor position vector, m t time, s T temperature, K u, v, w Cartesian velocity components, m/s x, y, z Cartesian spatial coordinates, m γ ratio of specific heats (γ = 1.4) μ absolute viscosity, N·s/m2 ρ density, kg/m3 τ shear stress tensor, N/m2 φ general solution variable Subscripts exact exact value k mesh level (k = 1, 2, 3, etc., fine to coarse) m mass equation n flowfield node index x, y, z x-, y-, or z-momentum equation e energy equation
منابع مشابه
Shape Optimization of an abrupt contraction using numerical streamlining
This research was conducted to find a reliable technique to shape an abrupt contraction for minimizing the energy loss. The method may find broader applications in design of variety of transitional cross-sections in hydraulic structures. The streamlines in a 2-D contraction were calculated through solving the potential flow equations in rectangular and curvilinear coordinates. The natural cubic...
متن کاملCode verification for finite volume multiphase scalar equations using the method of manufactured solutions
Code verification answers the question: “Is this code solving the equations correctly?” Validation answers the question: “Is this code solving the correct equations?” Code verification must be performed before attempting validation and is the focus of this paper. Here we present a novel method of applying the method of manufactured solutions (MMS) to finite volume multiphase codes. MMS is a pro...
متن کاملAccelerating high-order WENO schemes using two heterogeneous GPUs
A double-GPU code is developed to accelerate WENO schemes. The test problem is a compressible viscous flow. The convective terms are discretized using third- to ninth-order WENO schemes and the viscous terms are discretized by the standard fourth-order central scheme. The code written in CUDA programming language is developed by modifying a single-GPU code. The OpenMP library is used for parall...
متن کاملNumerical Simulation of the Incompressible Laminar Flow Over a Square Cylinder
Simulation of fluid flow over a square cylinder can be performed in order to understand the physics of the flow over bluff bodies. In the current study, incompressible laminar flow over a confined square cylinder, with variable blockage factor has been simulated numerically, using computational fluid dynamics (CFD). The focus has been on vortex-induced vibration (VIV) of the cylinder. Vorticity...
متن کاملCode Verification Examples of a Fully Geometrical Nonlinear Membrane Element Using the Method of Manufactured Solutions
This paper presents an effective method to perform Code Verification of a software which is designed for structural analysis using membranes. The focus lies on initially curved structures with large deformations in steady and unsteady regimes. The material is assumed to be linear elastic isotropic. Code Verification is a part of efforts to guarantee the code’s correctness and to obtain finally ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2000